Skip to main content

Test your integration with test Ads

Request Test Ads

When testing you should request ads by setting the test flag to true when initializing XMediator and when creating ad instances. We use this flag to ask the underlying networks to provide us with test ads when possible.

info

Some mediation services (or their underlying networks) may not support this flag and might provide other means to test their integration, so make sure to always check their documentation for any additional steps.

We do provide test Placement Ids to enable a quick way to test the integration.

Test Placement Ids
PlacementMAX MediationLevelPlay Mediation
App keyV148L42DB1V148L42DB8
BannerV142DR9L2247MGV142DR2LD0QYR1
InterstitialV142DRJLE1G5XXV142DR1L7WJN07
RewardedV142DR4LW2MT4BV142DR8L1DP5ND

Currently, these placements are only supported for these ad networks: Google Ads, AppLovin, Chartboost, Unity Ads and Liftoff Monetize.

warning

Remember to replace these test placements with your own placements and always set the test flags to false in a production environment

Enable test mode

Set the test flag to true to see test ads when available.

import { XMediatorProvider } from "react-native-xmediator";

export default function App() {
return (
<XMediatorProvider
appKey={"<YOUR_APP_KEY>"}
initSettings={{
test: true,
}}
>
{/* your app code... */}
</XMediatorProvider>
);
}

Enable verbose logging

Setting the verbose flag to true will output extra logging information to the standard output.

import { XMediatorProvider } from "react-native-xmediator";

export default function App() {
return (
<XMediatorProvider
appKey={"<YOUR_APP_KEY>"}
initSettings={{
verbose: true,
}}
>
{/* your app code... */}
</XMediatorProvider>
);
}